package com.ynu.appuser.domain.push;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 推送管理对象 push_history
 *
 * @author TangZheng
 * @date 2022-12-03
 */
public class PushHistory extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Excel(name = "id")
    private Long id;

    /**
     * App用户
     */
    @Excel(name = "用户")
    private Long mdUserId;

    /**
     * 模板
     */
    @Excel(name = "模板")
    private Long pushTemplateId;

    /**
     *
     */
    @Excel(name = "推送人")
    private Long creator;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private Long status;

    /**
     * （批量）插入时接收参数
     */
    private Long[] mdUserIds;

    private String mdUserRealName;
    private String mdUserNickName;
    private String mdUserUsername;
    private String pushTemplateName;
    private String creatorName;

    private String[] createTimeRange;

    public String[] getCreateTimeRange() {
        return createTimeRange;
    }

    public void setCreateTimeRange(String[] createTimeRange) {
        this.createTimeRange = createTimeRange;
    }

    public String getMdUserRealName() {
        return mdUserRealName;
    }

    public void setMdUserRealName(String mdUserRealName) {
        this.mdUserRealName = mdUserRealName;
    }

    public String getPushTemplateName() {
        return pushTemplateName;
    }

    public void setPushTemplateName(String pushTemplateName) {
        this.pushTemplateName = pushTemplateName;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setMdUserId(Long mdUserId) {
        this.mdUserId = mdUserId;
    }

    public Long getMdUserId() {
        return mdUserId;
    }

    public void setPushTemplateId(Long pushTemplateId) {
        this.pushTemplateId = pushTemplateId;
    }

    public Long getPushTemplateId() {
        return pushTemplateId;
    }

    public void setCreator(Long creator) {
        this.creator = creator;
    }

    public Long getCreator() {
        return creator;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    public Long[] getMdUserIds() {
        return mdUserIds;
    }

    public void setMdUserIds(Long[] mdUserIds) {
        this.mdUserIds = mdUserIds;
    }

    public String getMdUserNickName() {
        return mdUserNickName;
    }

    public void setMdUserNickName(String mdUserNickName) {
        this.mdUserNickName = mdUserNickName;
    }

    public String getMdUserUsername() {
        return mdUserUsername;
    }

    public void setMdUserUsername(String mdUserUsername) {
        this.mdUserUsername = mdUserUsername;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("mdUserId", getMdUserId())
                .append("pushTemplateId", getPushTemplateId())
                .append("creator", getCreator())
                .append("createTime", getCreateTime())
                .append("status", getStatus())
                .toString();
    }
}
